package com.tian.manager.controller;


import com.tian.commonutils.Result;
import com.tian.commonutils.ResultCode;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class ErrorController {

    // 公告错误跳转
    @RequestMapping("/autherror")
    public Result autherror(int code){
        return code == 1?Result.error().message("当前未登录"):Result.error().message("权限不足");
    }
}
